package com.answer.enums;

/**
 * 返回信息
 */
public enum ReturnInfoEnum {
    /**
     * EMPTY:model属性为空或对象为空
     */
    EMPTY("EMPTY", null),
    FAIL("FAIL", null),
    SELF("SELF", "属于本人信息"),
    TOKENOUT("TOKENOUT","token过期"),
    TOKENERROR("TOKENERROR","请求不合法"),
    NORECORD("NORECORD", "记录不存在"),
    SUCCESS("SUCCESS", "操作成功"),
    ERROR("ERROR", "系统异常"),
    NOSESSION("NOSESSION", "会话过期");

    private String type;
    private String info;

    ReturnInfoEnum(String type, String info) {
        this.type = type;
        this.info = info;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "MessageInfoEnum{" +
                "type='" + type + '\'' +
                ", info='" + info + '\'' +
                '}';
    }
}
